package com.sg.dao;

import com.sg.pojo.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author shkstart
 * @creat 2022-05-9:29
 */
public interface SubjectMapper {
    List<Subject> findAll();
    List<Subject> findSubByLimit(Map<String,Integer> map);
    List<Subject> findSubByLimit2(@Param("pageNo") int pageNo,@Param("pageSize") int pageSize);
    int findTotal();
    int addSub(Subject subject);
    int updateSub(Subject subject);
    int delSub(long id);
    Subject getSub(long id);

}
